<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="./common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
	<HEAD>
		<META content="IE=7.0000" http-equiv="X-UA-Compatible">
		<TITLE><s:property value="good.title" />-91拍手|清华二手网|清华二手市场|清华二手物品交易</TITLE>
		<link charset="utf-8" type="text/css" href="css/common.css"
			rel="stylesheet" />
		<link charset="utf-8" type="text/css" href="css/detail.css"
			rel="stylesheet" />
		<META content="text/html; charset=utf-8" http-equiv=Content-Type>
		<META name=Description
			content=厦门二手频道是网上厦门二手市场，提供免费的厦门二手信息发布，有闲置物品旧货出售求购交换需求，请来91拍手厦门二手网。>
		<META name=GENERATOR content="MSHTML 8.00.7601.17537">
		<script language="javascript">
	function check2() {

	}
</script>
		<script type="text/javascript">
	function displayandhidden() {
		var form = document.getElementById("requireDesign");
		if (document.getElementById("message_container").style.display == "none") {
			document.getElementById("message_container").style.display = "block";
			form.message.focus();
			form.message.scrollIntoView(true);
		} else if (document.getElementById("message_container").style.display == "block") {
			document.getElementById("message_container").style.display = "none";
		} else {
		}
	}

	function requireDesignSubmit() {
		var form = document.getElementById("requireDesign");
		if (form.message.value == "") {
			alert("请填写完整信息！");
			form.message.focus();
		} else if (form.mcontact.value == "") {
			alert("请填写联系方式！");
			form.mcontact.focus();
		} else {
			alert("发送成功！");
			form.submit();
		}
	}
</script>
	</HEAD>
	<BODY>
		<s:include value="include/top.jsp"></s:include>
		<s:include value="include/search.jsp"></s:include>

		<DIV class=wrapper>
			<!--mainBox -->
			<DIV class=mainBox>
				<s:include value="include/subnav.jsp"></s:include>
				<DIV id=body>
					<DIV class=body_left>
						<br>
						<H1 style="LINE-HEIGHT: 1.2em">
							<s:property value="good.title" />
							-
							<s:property value="good.price" />
							元
						</H1>
						<br>
						<P class=mt>
							发布时间：
							<s:date format="yy-MM-dd HH:mm" name="good.date" />
							&nbsp;&nbsp; 信息编号：
							<s:property value="good.id" />
							<SPAN id=pageviews>&nbsp;</SPAN>
							<BR>
						<H3>
							价格：
							<s:property value="good.price" />
							元
						</H3>
						<BR>
						所在地：
						<s:property value="good.address.dorm" />
						-
						<s:property value="good.address.room" />
						</P>
						<p>
							类别：
							<s:property value="good.catalog.name" />
						</p>
						<br>
						<h3>
							描述：
						</h3>
						<br>
						<P id=div_description class=mt>
						<H4>
							<s:property value="good.description" />
						</H4>
						</P>
						<br>
						<P>
							联系人：
							<s:property value="good.contactor" />
							<SPAN class=f_c_b><A class=userHistory
								href="<s:url action="findUserRecordsAction"><s:param name="userId"> 
                       			 	<s:property value="user.id"/> 
                    			</s:param> 
</s:url>"
								target=_blank>该用户发帖记录</A> | <A id=btn_talk_to class=f12
								href="javaScript:displayandhidden()">给发布人留言</A> </SPAN>
						</P>
						<P>
							电话：
							<s:property value="good.tel" />
							QQ：
							<s:property value="good.qq" />
						</P>
						<P>
							联系我时请说是91拍手网看到的.
						</P>
						<P>
							相关操作：
							<SPAN class=f_c_b><SPAN> 
<!-- ShareTo Button BEGIN -->
<script type="text/javascript" src="http://s.shareto.com.cn/js/shareto_float.js#color=4&align=left&move=1" charset="utf-8"></script> 
<!-- ShareTo Button END -->
<s:if test="collectFlag==1">该物品已保存入收藏夹</s:if> <s:else>
										<A
											href="<s:url action="addCollectAction"><s:param name="goodId"> 
                       			 	<s:property value="good.id"/> 
                    			</s:param> 
</s:url>"
											onclick="check2()"><SPAN>保存到收藏夹 </SPAN>
										</A>
									</s:else> </SPAN>
						</P>
						<br>
						<P>
							<s:iterator value="photoList" status="photo">
								<a
									href="<s:url action="download"> 
                     			<s:param name="fileName"> 
                       			 	<s:property value="filelink"/> 
                    			</s:param> 
								<s:param name="originalFileName"> 
                       			 	<s:property value="filename"/> 
                    			</s:param> 
                					</s:url>">
									<IMG width="280" height="208"
										alt=<s:property value="good.title"/>
										src="upload<s:property value='filelink'/>"> </a>
							</s:iterator>
						</P>
						<A name=comment></A>
						<P class=gaikuang>
							<SPAN class=f_c_gray3> <A
								href="javaScript:displayandhidden()">给发布人留言</A> </SPAN>
						</P>
						<DIV id=message_container class=message_box style="display: none;">
							<s:form action="sendMessageAction" method="post"
								id="requireDesign" name="requireDesign"
								enctype="multipart/form-data" onsubmit="requireDesignSubmit()">
								<s:hidden name="receiverId"></s:hidden>
								<s:hidden name="goodId"></s:hidden>
								<TABLE border=0 cellSpacing=0 cellPadding=0>
									<TBODY>
										<TR>
											<TD vAlign=top width=70 align=right>
												<SPAN class=f_c_red>*</SPAN>留言内容
											</TD>
											<TD class=message2>
												<s:textarea id="message" cssStyle="input_bod form_width"
													cols="40" rows="3" name="message.message" onfocus=""></s:textarea>
											</TD>
										</TR>
										<tr>
											<TD vAlign=top width=70 align=right>
												<SPAN class=f_c_red>*</SPAN>联系方式
											</TD>
											<td>
												<s:textfield id="mcontact" maxLength="50" size="40"
													name="message.contact" />
												<div style="margin-top: 0px; float: left; margin-left: 0px;">
													<a onclick="requireDesignSubmit()"><img width="140"
															height="45" src="image/button_submit.png" />
													</a>
												</div>
											</td>
										</tr>
									</TBODY>
								</TABLE>
							</s:form>
						</DIV>

						<DIV style="DISPLAY: none" id=ad_container_ppc class=blue_border></DIV>
						<!--GcnAD start-->
						<DIV style="DISPLAY: none" id=GcnADId1 class=GcnAD_detail></DIV>
						<!--GcnAD end-->
					</DIV>
					<DIV class=body_right>
						<!--品牌广告-->
						<DIV style="DISPLAY: none" id=ad_container_pinpai class=box></DIV>
						<!--end品牌广告-->
						<!--PPC广告-->
						<DIV style="DISPLAY: none" id=ad_container_ppc_detail class=box></DIV>
						<!--end PPC广告-->
						<!--赞助商广告-->
						<DIV style="DISPLAY: none" id=ad_container_zanzhushang
							class=pinpaiAD_box></DIV>
						<!--end赞助商广告-->
					</DIV>
					<DIV style="CLEAR: both"></DIV>
				</DIV>
			</DIV>
			<!--mainBox end -->
		</DIV>
		<s:include value="include/footer.jsp"></s:include>
	</BODY>
</HTML>
